﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WXY.Course.DAL;
using WXY.Course.Model;

namespace WXY.Course.BLL
{
    public class MenuBLL
    {
        public int Insert(MenuInfo menu)
        {
            return MenuDAL.Insert(menu);
        }

        public int Update(MenuInfo menu)
        {
            return MenuDAL.Update(menu);
        }

        public MenuInfo Get(int code)
        {
            return MenuDAL.Get(code);
        }

        public IList<MenuInfo> GetList()
        {
            return MenuDAL.GetList();
        }

        public IList<MenuInfo> GetPageList(string name, PageParams pageParams)
        {
            return MenuDAL.GetPageList(name, pageParams);
        }

        public int Delete(int code)
        {
            return MenuDAL.Delete(code);
        }
    }
}
